package jsen.tool.ddd.demo.domain.brand.spec;

import com.google.common.collect.Sets;
import jsen.tool.ddd.adapter.infrastructure.specification.ISpecification;
import jsen.tool.ddd.demo.domain.brand.Brand;

import java.util.Set;

/**
 * @author jsen
 * @date 2021/10/6
 */
public class BrandSpecFactory {
    private static final Set<String> existBrandNameSet = Sets.newHashSet("旺旺");

    public static ISpecification<Brand> buildSpec() {
        return new BrandNameSpec(existBrandNameSet);
    }
}
